package com.deep.product.dao;

import com.deep.product.model.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author deep
 * @email ${email}
 * @date 2022-01-13 17:09:54
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void deleteBach(@Param("entities") List<AttrAttrgroupRelationEntity> relationEntities);

    void deleteByAttrIds(@Param("attrIds") Long[] attrIds);

    List<AttrAttrgroupRelationEntity> queryByAttrGroupIds(@Param("attrGroupIds") List<Long> attrGroupIds);
}
